package com.hst.capacity.domain.model.entity.order.base;

import com.hst.capacity.domain.model.entity.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单结算表基类
 */
@Data
@MappedSuperclass
public class BaseOrderSettlementEntity extends BaseEntity {
    private String idOrder;//订单ID
    private String idCoupon;//使用优惠券ID
    private Float orderMoney;//订单费用
    private Float cashPrice;//现金支付金额
    private String lineName;//电子支付机构
    private Float linePrice;//电子支付金额
    private String posName;//POS机支付机构
    private Float posPrice;//POS机支付金额
    private Float orderLongDistanceMoney;//POS机支付金额
    private Float orderTip;//小费
    private Float orderCoupon;//订单优惠券减免金额
    private Float orderOther;//其他费用
    private Float orderRoadMoney;//路桥收费
    private Float advancement;//司机垫付费用
    private Float orderTotal;//订单总计费
    private Float booktip;//预约服务费
    private Float peakupPrice;//高峰时段时间加价金额
    private Float nightupPrice;//夜间时段里程加价金额
    private Float otherupPrice;//其他加价金额
    private LocalDateTime payTime;//乘客结算时间
    private String memo;//备注
    private Integer paymentType;//支付类型（0：现金  1：月结代扣  2：余额  3：支付宝  4：微信  5：ApplePay  6：银联  99：其他）
}
